From 5b6313f16f508882a0ea67716b7dbaa1c6967f04 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Mon, 30 Jun 2025 08:28:13 +0000
Subject: (대표님) 20250630 16시 - 유저 도메인별 라우터 분리와 보안성검토 대응
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../engineering/(engineering)/faq/manage/page.tsx  | 38 ++++++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 app/[lng]/engineering/(engineering)/faq/manage/page.tsx

(limited to 'app/[lng]/engineering/(engineering)/faq/manage/page.tsx')

diff --git a/app/[lng]/engineering/(engineering)/faq/manage/page.tsx b/app/[lng]/engineering/(engineering)/faq/manage/page.tsx
new file mode 100644
index 00000000..011bbfa4
--- /dev/null
+++ b/app/[lng]/engineering/(engineering)/faq/manage/page.tsx
@@ -0,0 +1,38 @@
+import { FaqManager } from '@/components/faq/FaqManager';
+import { getFaqData, updateFaqData } from './actions';
+import { revalidatePath } from 'next/cache';
+import { FaqCategory } from '@/components/faq/FaqCard';
+
+interface Props {
+    params: {
+        lng: string;
+    }
+}
+
+export default async function FaqManagePage(props: Props) {
+    const resolvedParams = await props.params
+    const lng = resolvedParams.lng
+    const { data } = await getFaqData(lng);
+
+    async function handleSave(newData: FaqCategory[]) {
+        'use server';
+        await updateFaqData(lng, newData);
+        revalidatePath(`/${lng}/evcp/faq`);
+    }
+
+    return (
+        <div className="container py-6">
+            <section className="overflow-hidden rounded-[0.5rem] border bg-background shadow">
+                <div className="space-y-6 p-10 pb-16">
+                    <div className="space-y-0.5">
+                        <h2 className="text-2xl font-bold tracking-tight">FAQ Management</h2>
+                        <p className="text-muted-foreground">
+                            Manage FAQ categories and items for {lng.toUpperCase()} language.
+                        </p>
+                    </div>
+                    <FaqManager initialData={data} onSave={handleSave} lng={lng} />
+                </div>
+            </section>
+        </div>
+    );
+} 
\ No newline at end of file
-- 
cgit v1.2.3

